The Accordion Pane Component > FAccordionPane.getValue()

 

FAccordionPane.getValue()

Availability

Flash Player 6.

Usage

myAccordion_acp.getValue ()

Parameters

none

Returns


Returns an Object representing the currently selected item. The object will have two properties, label and linkage, which contains information about the specified section.

Description

Returns an Object representing the currently selected item. The object will have two properties, label and linkage, which contains information about the specified section.

Example

The following code adds for sections to the component, sets the selected index 2, and then retrieves information from the currently selected section.

	var sections = ["Section 1","Section 2","Section 3","Section 4"];
	myAccordionPane_acp.setDataProvider(sections);
	myAccordionPane_acp.setSelectedIndex(2);

	var item = myAccordionPane_acp.getValue();
	trace("Selected Item: "+item.label); //traces "Selected Item: Section 3"

 

See also

FAccordionPane.getItemAt()

FAccordionPane.getSelectedItem()